/**
 * 
 */
package br.org.bertol.mestrado.engine.optimisation.hillclimbing;

import java.util.ArrayList;
import java.util.Random;

import br.org.bertol.mestrado.engine.optimisation.Unit;

/**
 * @author Gabriel Bertol Pinheiro
 */
public class Path extends Unit {
    private Random fator = new Random(System.nanoTime());

    public Path() {
        super();
    }

    @SuppressWarnings("unchecked")
    @Override
    public Object clone() throws CloneNotSupportedException {
        final Path clone = (Path) super.clone();

        clone.setRoute((ArrayList<Integer>) this.getRoute().clone());

        clone.setHeight(height);

        return clone;
    }

    public Random getFator() {
        return fator;
    }

    public void setFator(Random fator) {
        this.fator = fator;
    }

    @Override
    public void update() {

    }
}
